package com.css.service;

import java.util.List;
import java.util.Map;

import com.css.vo.Sale;
import com.css.vo.SaleTop;

public interface ISaleService {

	public void save(Sale sale);

	public void delete(Sale sale);

	public void update(Sale sale);

	public Sale find(String carModel);

	public List<Sale> findAllSale();

	public Sale findById(Integer id);

	public List<Sale> findSalePage(int pageNow, int pageSize, Sale sale);

	int getTotalSaleCount(Sale sale);

	public List<Sale> searchSale(String search);

	public Map<String, Object> getPaginatedSales(int page, int pageSize,
			String search);

	public List<SaleTop> getSaleTopList();

}
